SGSetChannelMaxFrames
TheSGSetChannelMaxFrames
function allows you to limit the number of frames
that the sequence grabber will capture from a specified channel. This function works only with channels that have data that is organized into frames, such as video data from a video disc.
pascal ComponentResult SGSetChannelMaxFrames (SGChannel c, long frameCount);
c
- Specifies the reference that identifies the channel for this operation. You obtain this reference from the
SGNewChannel
function, described on page 5-29.frameCount
- Specifies the maximum number of frames to capture during the preview or record operation. Set this value to -1 to remove the limit.
DESCRIPTION
You can use theSGSetChannelMaxFrames
function in the context of a time-based function to control the number of frames you collect for each unit of time. For example, if you want to collect one frame of data per second, you can create a function that executes once per second. That function should callSGSetChannelMaxFrames
to set the maximum frame count to 1. Your application can determine when the frame is captured by calling theSGGetChannelMaxFrames
function and detecting when that function returns a value of 0. TheSGGetChannelMaxFrames
function is described in the next section.You may use this function only after you have prepared the sequence grabber component for a record operation or during an active record operation. Note that sequence grabber components clear this value when you prepare for a record operation.
SEE ALSO
You can determine whether a channel's data is organized into frames by calling theSGGetChannelInfo
function, which is described on page 5-58.RESULT CODES
paramErr -50 Invalid parameter specified cantDoThatInCurrentMode -9402 Request invalid in current mode
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help